package com.example.kuaizu.pojo.pram;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import kuaizu.common.em.ProjectOrientationEm;
import lombok.Data;

import java.util.List;

/**
 * @author: wangmx15
 * @date: 2025/9/18
 **/
@Data
public class CreateTalentParam {
    @NotBlank
    @Size(max = 40,message = "人才介绍最多40个字符")
    private String talentInfo;
    @NotBlank(message = "标签不能为空")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,4}(,[\\u4e00-\\u9fa5]{1,4}){0,3}$", message = "标签格式错误")
    @Size(max = 19, message = "字符过长")
    private String leba;
    //加入项目
    @Size(max = 100)
    private List<Integer> joinProject;
    private UserInfo userInfo;

    @Data
    public class UserInfo {
        /**
         * 个人人设描述
         */
        @Size(max = 20 ,message = "个人描述不能超过20个字符")
        private String persona;
        /**
         * MBTI人格类型
         */
        @Size(max = 4, message = "mbti长度不能超过4")
        private String mbti;

        /**
         * 项目偏向领域
         */
        private ProjectOrientationEm projectOrientation;

        /**
         * 个人简介
         */
        @Size(max = 100,message = "个人简介最多一百字符")
        private String introduction;
    }
}
